package com.yztc.orangeentertainment.ui.main.articlecommentall;

import android.content.Context;

import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.articlecommentall.ArticleCommentAllListBean;

import java.util.List;
import java.util.Map;

/**
 * Created by My on 2016/10/14.
 */
public class ArticleCommentAllContract {
    public interface View extends IView {
        public void onArticleCommentAllSucess(List<ArticleCommentAllListBean> infoBeanList);

        public void onArticleCommentAllFaild(String msg);

    }

    public interface Modle extends IModle {
        public void getArticleCommentAll(String type, Map<String, String> map,
                                         OnLoadArticleCommentAllListener loadArticleCommentAllListener, Context
                                                 context);

        public void getArticleCommentAllFromDb(OnLoadArticleCommentAllListener loadArticleCommentAllListener);
    }

    public interface Presenter extends IPresenter {
        public void getArticleCommentAllFromNet(Context context, int id, int page);

        public void getArticleCommentAllFromDb();
    }

}